import request from '@/utils/request'

// 查询采购退单列表
export function listPurchaseReturn(query) {
  return request({
    url: '/system/PurchaseReturn/list',
    method: 'get',
    params: query
  })
}

// 查询采购退单详细
export function getPurchaseReturn(id) {
  return request({
    url: '/system/PurchaseReturn/' + id,
    method: 'get'
  })
}

// 新增采购退单
export function addPurchaseReturn(data) {
  return request({
    url: '/system/PurchaseReturn',
    method: 'post',
    data: data
  })
}

// 修改采购退单
export function updatePurchaseReturn(data) {
  return request({
    url: '/system/PurchaseReturn',
    method: 'put',
    data: data
  })
}

// 删除采购退单
export function delPurchaseReturn(id) {
  return request({
    url: '/system/PurchaseReturn/' + id,
    method: 'delete'
  })
}
